package br.com.wai2008.client.constants;

public class ClientConstants {

	public static String SIMULATION_LABEL = "Simulation";
	
	public static String REALTIME_LABEL = "Real-time";
	
	public static String USER_TYPE_0 = "Normal";

	public static String USER_TYPE_1 = "Visual";

	public static String USER_TYPE_2 = "Phisical";
	
	public static String LANGUAGE_0 = "Portuguese";

	public static String LANGUAGE_1 = "English";

	public static String LANGUAGE_2 = "Spanish";
	
	public static String FLOOR_0 = "0";
	
	public static String TARGET_0 = "Entrada"; //entrada

	public static String TARGET_1 = "Biblioteca"; //biblioteca

	public static String TARGET_2 = "Anfiteatro"; //anfiteatro

	public static String TARGET_3 = "Pró-aluno"; //pró-aluno

	public static String TARGET_4 = "Lab-soft"; //Lab-Soft

	public static String TARGET_5 = "CEE"; //CEE

	public static String TARGET_6 = "Banheiro"; //Banheiro

	public static String TARGET_7 = "LARC"; //LARC
	
	public static String[] getTargets() {
		return new String[]{TARGET_0, TARGET_1, TARGET_2, TARGET_3, TARGET_4, TARGET_5, TARGET_6, TARGET_7};
	}
	
	public static String[] getUsers() {
		return new String[]{USER_TYPE_0, USER_TYPE_1, USER_TYPE_2};
	}
	
	public static int getUserRestriction(String userType) {
		if (userType.compareTo(USER_TYPE_0) == 0) {
			return 0;
		} else if (userType.compareTo(USER_TYPE_1) == 0) {
			return 1;
		} else if (userType.compareTo(USER_TYPE_2) == 0) {
			return 2;
		}
		return 0;
	}
	
	public static String getTarget(String userType) {
		if (userType.compareTo(TARGET_0) == 0) {
			return "01";
		} else if (userType.compareTo(TARGET_1) == 0) {
			return "26";
		} else if (userType.compareTo(TARGET_2) == 0) {
			return "09";
		} else if (userType.compareTo(TARGET_3) == 0) {
			return "10";
		} else if (userType.compareTo(TARGET_4) == 0) {
			return "18";
		} else if (userType.compareTo(TARGET_5) == 0) {
			return "34";
		} else if (userType.compareTo(TARGET_6) == 0) {
			return "117";
		} else if (userType.compareTo(TARGET_7) == 0) {
			return "121";
		}
		return "01";
	}
	
	public static String[] getLanguages() {
		return new String[]{LANGUAGE_0, LANGUAGE_1, LANGUAGE_2};
	}
	
	public static String getLanguage(String language) {
		if (language.compareTo(LANGUAGE_0) == 0) {
			return "PtBr";
		} else if (language.compareTo(LANGUAGE_1) == 0) {
			return "En";
		} else if (language.compareTo(LANGUAGE_2) == 0) {
			return "Es";
		}
		return "En";
	}
	
	public static String[] getFloors() {
		return new String[]{FLOOR_0};
	}
}
